home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 74
/
Volume 74 My Disc - Damaged.iso
/
Games
/
TrendyCouple.swf
/
scripts
/
frame_6
/
DoAction_2.as
next >
Wrap
Text File
|
2008-08-11
|
9KB
|
397 lines
function block_all()
{
for(var _loc2_ in _root)
{
_root[_loc2_].enabled = false;
}
go_sponsor.enabled = true;
}
function unblock_all()
{
for(var _loc2_ in _root)
{
_root[_loc2_].enabled = true;
}
}
stop();
if(_root._currentframe == 6)
{
j = 1;
while(j <= 5)
{
_root["head" + j].gotoAndStop(j);
_root["head" + j].n = j;
_root["head" + j].onPress = function()
{
head.gotoAndStop(this.n);
};
j++;
}
j = 1;
while(j <= 5)
{
_root["body" + j].gotoAndStop(j);
_root["body" + j].n = j;
_root["body" + j].ty = 148;
j++;
}
_root.body2.tx = 332;
_root.body3.tx = 388;
_root.body5.tx = 444;
_root.body1.tx = 498;
_root.body4.tx = 554;
a = 1;
while(a <= 5)
{
_root["body" + a]._x = _root["body" + a].tx;
_root["body" + a]._y = _root["body" + a].ty;
a++;
}
i = 1;
while(i <= 5)
{
_root["body" + i].onPress = function()
{
this.startDrag();
};
_root["body" + i].onRelease = function()
{
this.stopDrag();
if(this._x < 200)
{
body.gotoAndStop(this.n + 1);
a = 1;
while(a <= 5)
{
_root["body" + a]._visible = 1;
_root["body" + a]._x = _root["body" + a].tx;
_root["body" + a]._y = _root["body" + a].ty;
a++;
}
this._visible = 0;
}
else
{
this._x = this.tx;
this._y = this.ty;
}
};
i++;
}
body.onPress = function()
{
bodyc = this._currentframe - 1;
_root["body" + bodyc]._x = _root._xmouse;
_root["body" + bodyc]._y = _root._ymouse;
_root["body" + bodyc].startDrag();
_root["body" + bodyc]._visible = 1;
this.gotoAndStop(1);
};
body.onReleaseOutside = function()
{
if(_root._xmouse > 200)
{
_root["body" + bodyc].stopDrag();
_root["body" + bodyc]._x = _root["body" + bodyc].tx;
_root["body" + bodyc]._y = _root["body" + bodyc].ty;
}
else
{
_root["body" + bodyc]._visible = 0;
this.gotoAndStop(bodyc + 1);
}
};
j = 1;
while(j <= 5)
{
_root["legs" + j].gotoAndStop(j);
_root["legs" + j].n = j;
_root["legs" + j].ty = 240;
j++;
}
_root.legs3.tx = 332;
_root.legs1.tx = 388;
_root.legs2.tx = 444;
_root.legs5.tx = 498;
_root.legs4.tx = 554;
a = 1;
while(a <= 5)
{
_root["legs" + a]._x = _root["legs" + a].tx;
_root["legs" + a]._y = _root["legs" + a].ty;
a++;
}
i = 1;
while(i <= 5)
{
_root["legs" + i].onPress = function()
{
this.startDrag();
};
_root["legs" + i].onRelease = function()
{
this.stopDrag();
if(this._x < 200)
{
legs.gotoAndStop(this.n + 1);
a = 1;
while(a <= 5)
{
_root["legs" + a]._visible = 1;
_root["legs" + a]._x = _root["legs" + a].tx;
_root["legs" + a]._y = _root["legs" + a].ty;
a++;
}
this._visible = 0;
}
else
{
this._x = this.tx;
this._y = this.ty;
}
};
i++;
}
legs.onPress = function()
{
legsc = this._currentframe - 1;
_root["legs" + legsc]._x = _root._xmouse;
_root["legs" + legsc]._y = _root._ymouse;
_root["legs" + legsc].startDrag();
_root["legs" + legsc]._visible = 1;
this.gotoAndStop(1);
};
legs.onReleaseOutside = function()
{
if(_root._xmouse > 200)
{
_root["legs" + legsc].stopDrag();
_root["legs" + legsc]._x = _root["legs" + legsc].tx;
_root["legs" + legsc]._y = _root["legs" + legsc].ty;
}
else
{
_root["legs" + legsc]._visible = 0;
this.gotoAndStop(legsc + 1);
}
};
j = 1;
while(j <= 5)
{
_root["feet" + j].gotoAndStop(j);
_root["feet" + j].n = j;
_root["feet" + j].ty = 340;
j++;
}
_root.feet4.tx = 332;
_root.feet1.tx = 388;
_root.feet3.tx = 444;
_root.feet2.tx = 498;
_root.feet5.tx = 554;
a = 1;
while(a <= 5)
{
_root["feet" + a]._x = _root["feet" + a].tx;
_root["feet" + a]._y = _root["feet" + a].ty;
a++;
}
i = 1;
while(i <= 5)
{
_root["feet" + i].onPress = function()
{
this.startDrag();
};
_root["feet" + i].onRelease = function()
{
this.stopDrag();
if(this._x < 200)
{
feet.gotoAndStop(this.n + 1);
a = 1;
while(a <= 5)
{
_root["feet" + a]._visible = 1;
_root["feet" + a]._x = _root["feet" + a].tx;
_root["feet" + a]._y = _root["feet" + a].ty;
a++;
}
this._visible = 0;
}
else
{
this._x = this.tx;
this._y = this.ty;
}
};
i++;
}
feet.onPress = function()
{
feetc = this._currentframe - 1;
_root["feet" + feetc]._x = _root._xmouse;
_root["feet" + feetc]._y = _root._ymouse;
_root["feet" + feetc].startDrag();
_root["feet" + feetc]._visible = 1;
this.gotoAndStop(1);
};
feet.onReleaseOutside = function()
{
if(_root._xmouse > 200)
{
_root["feet" + feetc].stopDrag();
_root["feet" + feetc]._x = _root["feet" + feetc].tx;
_root["feet" + feetc]._y = _root["feet" + feetc].ty;
}
else
{
_root["feet" + feetc]._visible = 0;
this.gotoAndStop(feetc + 1);
}
};
j = 1;
while(j <= 5)
{
_root["ykr" + j].gotoAndStop(j);
_root["ykr" + j].n = j;
_root["ykr" + j].ty = 430;
j++;
}
_root.ykr5.tx = 332;
_root.ykr3.tx = 388;
_root.ykr2.tx = 444;
_root.ykr1.tx = 498;
_root.ykr4.tx = 554;
a = 1;
while(a <= 5)
{
_root["ykr" + a]._x = _root["ykr" + a].tx;
_root["ykr" + a]._y = _root["ykr" + a].ty;
a++;
}
i = 1;
while(i <= 5)
{
_root["ykr" + i].onPress = function()
{
this.startDrag();
};
_root["ykr" + i].onRelease = function()
{
this.stopDrag();
if(this._x < 200)
{
ykr.gotoAndStop(this.n + 1);
a = 1;
while(a <= 5)
{
_root["ykr" + a]._visible = 1;
_root["ykr" + a]._x = _root["ykr" + a].tx;
_root["ykr" + a]._y = _root["ykr" + a].ty;
a++;
}
this._visible = 0;
}
else
{
this._x = this.tx;
this._y = this.ty;
}
};
i++;
}
ykr.onPress = function()
{
ykrc = this._currentframe - 1;
_root["ykr" + ykrc]._x = _root._xmouse;
_root["ykr" + ykrc]._y = _root._ymouse;
_root["ykr" + ykrc].startDrag();
_root["ykr" + ykrc]._visible = 1;
this.gotoAndStop(1);
};
ykr.onReleaseOutside = function()
{
if(_root._xmouse > 200)
{
_root["ykr" + ykrc].stopDrag();
_root["ykr" + ykrc]._x = _root["ykr" + ykrc].tx;
_root["ykr" + ykrc]._y = _root["ykr" + ykrc].ty;
}
else
{
_root["ykr" + ykrc]._visible = 0;
this.gotoAndStop(ykrc + 1);
}
};
}
head.gotoAndStop(gi1);
body.gotoAndStop(gi2);
legs.gotoAndStop(gi3);
feet.gotoAndStop(gi4);
ykr.gotoAndStop(gi5);
but_next1.onRelease = function()
{
gi1 = head._currentframe;
gi2 = body._currentframe;
gi3 = legs._currentframe;
gi4 = feet._currentframe;
gi5 = ykr._currentframe;
_root.gotoAndStop(7);
};
if(replay1)
{
head.gotoAndStop(1);
body.gotoAndStop(1);
legs.gotoAndStop(1);
feet.gotoAndStop(1);
ykr.gotoAndStop(1);
but_next1._visible = 0;
time_go._visible = 1;
replay1 = false;
}
if(!gameplay)
{
but_next1._visible = 0;
block_all();
m_clock.m_str._rotation = 0;
m_clock_go = false;
num_obj = 1000;
bont = 0;
pp = 0;
}
else
{
time_go._visible = 0;
}
time_go.bt_play.onRelease = function()
{
time_go.play();
gameplay = true;
};
onEnterFrame = function()
{
if(time_go._currentframe == 45)
{
unblock_all();
but_next1._visible = 1;
m_clock_go = true;
}
if(m_clock_go)
{
if(pp >= 1800)
{
if(nbt._currentframe == 1)
{
nbt.play();
}
m_clock_go = false;
}
else
{
m_clock.m_str._rotation += 0.2;
bont += 0.5;
pp += 1;
}
}
};